﻿namespace DotNetStar.OpenSDK.WeChat.Pay
{
    /// <summary>
    /// 微信 APP 支付的统一下单响应结果。https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_1
    /// </summary>
    /// <seealso cref="WeChatPayApiResponse" />
    public class UnifiedOrderApiResponse:WeChatPayApiResponse
    {
        /// <summary>
        /// 应用APPID
        /// </summary>
        /// <value>
        /// The application identifier.
        /// </value>
        public string AppId { get; set; }
        /// <summary>
        /// 商户号
        /// </summary>
        /// <value>
        /// The MCH identifier.
        /// </value>
        public string Mch_Id { get; set; }
        /// <summary>
        /// 设备号
        /// </summary>
        /// <value>
        /// The device information.
        /// </value>
        public string Device_Info { get; set; }

        /// <summary>
        /// 交易类型 调用接口提交的交易类型，取值如下：JSAPI，NATIVE，APP
        /// </summary>
        /// <value>
        /// The prepay identifier.
        /// </value>
        public string Trade_Type { get; set; }
        /// <summary>
        /// 预支付交易会话标识，微信生成的预支付回话标识，用于后续接口调用中使用，该值有效期为2小时
        /// </summary>
        public string Prepay_Id { get; set; }

        /// <summary>
        /// 微信支付二维码的地址。Trade_Type 是 NATIVE 时才会返回。
        /// </summary>
        /// <remarks>
        /// 只能在微信客户端打开。
        /// </remarks>
        public string Code_Url { get; set; }
    }
}
